<?php
include APPPATH."views/frontend/inc/01_meta.php";
include APPPATH."views/frontend/inc/02_head.php";
?>
<?php
if(!empty($cate->Thumb)){
	?>
	<div class="banner">
		<img style="position: absolute;width: 100%;height: 100%" src="<?php echo $cate->Thumb ?>"/>
	</div>
<?php
}else{
?>
<div class="banner-product"></div>
<?php
}
?>

<div class="navi">
	<a href="/home">Home</a>
	<span>/</span>
	<a href="/category/<?php echo $cate_type['key']?>"><?php echo $cate_type['name']?></a>
	<span>/</span>
	<a href="/category/<?php echo $cate_type['key']?>/<?php echo $group_cate->Id?>-<?php echo $group_cate->Alias?>"><?php echo $group_cate->Title?></a>
	<div class="clear"></div>
</div>
<script type="text/javascript">
    var cookie_name = 'cat_group_<?php echo $group_cate->Id ?>';
    var filter_cate = <?php echo json_encode($filter_cate) ?>;
    var category_type = "<?php echo $cate_type['key'] ?>";
    var page = 1;
    $(document).ready(function() {
        product_list_init();
    });
</script>
<div>
	<div class="menu-left">
		<div class="menu-title"><?php echo $group_cate->Title?></div>
		<ul>
			<?php
			if(!empty($group_cate->Children)){
				foreach($group_cate->Children as $c){
					?>
					<li class="item">
						<div class="dot">
							<a href="/category/<?php echo $cate_type['key']?>/<?php echo $group_cate->Id?>-<?php echo $group_cate->Alias?>/<?php echo $c->Id?>-<?php echo $c->Alias?>">
							<?php echo $c->Title?>
							</a>
						</div>
					</li>
					<?php
				}
			}else{
				?>
				<li>No data to display</li>
				<?php
			}
			?>
		</ul>
	</div>
	<div class="main-content">
        <div>
            <?php include APPPATH . "views/frontend/product/03_product_list.php";?>
        </div>
    </div>
</div>
<div class="clear"></div>
<?php
include APPPATH."views/frontend/inc/03_foot.php";
?>